USE [Finances]
GO
/****** Object:  StoredProcedure [dbo].[accountsUpdateById]    Script Date: 09/14/2008 22:08:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Kenley Capps
-- Create date: 09/14/08
-- Description:	Updates an account by account Id
-- =============================================
CREATE PROCEDURE [dbo].[accountsUpdateById] 
	-- Add the parameters for the stored procedure here
	@account_id uniqueidentifier,
	@name varchar(50),
	@description varchar(255)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	UPDATE accounts SET name = @name, description = @description WHERE account_id = @account_id;
END
